package vip.liux.contracts.shared.enums;

import vip.liux.core.enums.IEnum;

/**
 * 性别枚举
 * <p>
 * 0 - 未知
 * 1 - 男
 * 2 - 女
 * </p>
 */
public enum Gender implements IEnum {
    UNKNOWN(0, "未知"),
    MALE(1, "男"),
    FEMALE(2, "女");
    final int value;

    final String desc;

    Gender(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public int getValue() {
        return value;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
